@extends('admin.home.main')

@section('body')
<section id="main-content">

<section class="wrapper">
<h3>会员列表</h3>
<hr>
<div class="row mt">
  <div class="col-md-12">
  <form action="/admin/member/list" method="get">
    <select size="1" name="page_size" aria-controls="hidden-table-info" style="width:80px; height:34px; float:left; " class="form-control">
      <option value="0">请选择</option>
      @foreach($page_size_list as $ptm=>$pst)
        @if($pst == $page_size)
        <option value="{{$pst}}" selected="selected">{{$pst}}</option>
        @else
        <option value="{{$pst}}">{{$pst}}</option>
        @endif
      @endforeach
    </select>
    <input type="text" style="width:200px;float:left; margin-left:10px;" class="form-control"  placeholder="请输入会员昵称或联系电话" name="keywords" id="keywords" value="{{$keywords}}">
    <button type="submit" id="search" style="float:left; margin-left:10px;" class="btn btn-success">搜索</button>
  </form>
  </div>
</div>

<!-- row -->
<div class="row mt">
  <div class="col-md-12">
    <div class="content-panel">
      <table class="table table-striped table-advance table-hover">
        <thead>
          <tr>
          	<th>#</th>
            <th>昵称</th>
            <th>头像</th>
            <th>联系电话</th>
            <th>注册时间</th>
            <th>是否购买教具</th>
          </tr>
        </thead>
        <tbody>
          @foreach($mlist as $ust)
          <tr>
          	<td>{{$ust->id}}</td>
            <td>{{$ust->nick}}</td>
            <td><img src="{{$ust->thumb}}" alt="" style="width:50px; height:50px; border:1px solid #ccc;
            border-radius:25px;"></td>
            <td>{{$ust->telephone}}</td>
            <td>{{$ust->register_date}}</td>
            <td>
              @if($ust->isbuy == 1)
                是
              @else
                否
              @endif
            </td>
          </tr>
          @endforeach

        </tbody>
      </table>
    </div>
    <!-- /content-panel -->
    <div class="row-fluid">

      <div class="span6">
        <div class="dataTables_paginate paging_bootstrap pagination">
          <ul>{!! $mlist->render() !!}</ul>
        </div>
      </div>
    </div>
  </div>
  <!-- /col-md-12 -->
 
</div>
<!-- /row -->
</section>
</section>
@endsection